#include "mydialogbase.h"
#include <QMenu>
#include <QMenuBar>
#include <QAction>

MyDialogBase::MyDialogBase(QWidget *parent) :
    QDialog(parent)
{
    resize(400,400);
    createMenu();

}
void MyDialogBase::createMenu()
{
    QMenuBar * menubar=new QMenuBar(this);
    QMenu    * filemenu=new QMenu("FILE",this);
    QAction  *exitAction=filemenu->addAction("Exit");
    menubar->addMenu(filemenu);
    connect(exitAction,SIGNAL(triggered()),this,SLOT(accept()));
}
